package io.github.talelin.latticy.dto.rule.chargeItem;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;

/**
 * @authoer:wulongbo
 * @createDate:2022/8/23
 * @description:
 */

@Data
public class ChargeConditionDTO {

    /**
     * 规则key_id
     * 记录，防止ftlKey更改后没法溯源
     */
    @Positive
    private Integer ruleKeyId;

    /**
     * 模板key
     */
    @NotBlank(message = "{ftlKey.not-blank}")
    private String ftlKey;

    /**
     * 运算符号 > < >= <= ==等
     */
    @NotBlank(message = "{symbol.not-blank}")
    private String symbol;

    /**
     * 输入框的值或者下拉框的下标值
     */
    @Positive(message = "{ruleValueId.not-blank}")
    private Integer ruleValueId;

    /**
     * 逻辑运算符 && ||
     */
    private String logical;


}
